package cn.jiyun.service.fegin;

import cn.jiyun.entity.day13.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

/**
 * @Author sjt
 * @Date 2023/8/22 11:04
 * @PackageName: com.usion.service.UserFeginService
 */
@FeignClient("day13-user")
public interface UserFeginService {
    /*
     * @description:
     * @author: sjt
     * @date: 2023/8/31 11:17
     * @param: [user]
     * @return: java.lang.String
     * @annotate:传递账户,密码/登录功能
    **/
    @PostMapping("/user/userLogin")
    public String userLogin(@RequestBody User user);
    //根据用户的id查询一个用户的姓名
    @GetMapping("/user/findUserName")
    String findUserName(@RequestParam("uid") Integer uid);

    @GetMapping("/user/changeLoginUserPictrue")
    Integer changeLoginUserPictrue(@RequestParam("uid") Integer uid,@RequestParam("pictrue") String pictrue);

    @GetMapping("/user/changeLoginUserPassword")
    Integer changeLoginUserPassword(@RequestParam("uid") Integer uid,@RequestParam("password") String password);

    @DeleteMapping("/team/deleteTeam")
    Integer deleteTeam(@RequestParam("tid") Integer tid);
}
